<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="CollegeWebsite.Models" %>
<% var facultyMenu = (List<Faculty>)ViewData["FacultyMenu"];
   var departmentMenu = (List<Department>)ViewData["DepartmentMenu"];
    
    
%>
<ul class="art-menu">
    <li><a href="<%= Url.Action("Index","Home") %>" class=" active"><span class="l"></span>
        <span class="r"></span><span class="t">Home</span></a></li>    
    <li><a href="#"><span class="l"></span><span class="r"></span><span class="t">Departments</span></a>
        <ul>
            <% foreach (Faculty faculty in facultyMenu)
               {
 
            %>
            <li><a href="<%= Url.Action("CourseInfo","Course",new {Faculty=faculty.FacultyID}) %>">
                <span class="l"></span><span class="r"></span><span class="t">
                    <% = faculty.FacultyName %></span></a>
                     <ul>
                <%  foreach (Department department in faculty.Departments.Select(d => d).Where(d => (d.Status && d.Courses.Count>0)))
                    {
                        
                %>
               <li><a href="<%= Url.Action("CourseInfo","Course",new {Department=department.DepartmentID,Faculty=faculty.FacultyID}) %>">
                <span class="l"></span><span class="r"></span><span class="t">
                    <% = department.DepartmentName %></span></a></li>
                
               
                <%
                    }
   
                %>
                 </ul>
            </li>
            <%
                }
            %>
        </ul>
    </li>
      <li><a href="<%= Url.Action("Index","Facility") %>"><span class="l"></span><span class="r">
        </span><span class="t">Facilities</span></a></li>
    <li><a href="<%= Url.Action("Index","Contact") %>"><span class="l"></span><span class="r">
        </span><span class="t">Contact Us</span></a></li>
    <li><a href="<%= Url.Action("Create","FeedBack") %>"><span class="l"></span><span class="r">
        </span><span class="t">Feedback</span></a></li>
    <li><a href="<%= Url.Action("About","Home") %>"><span class="l"></span><span class="r">
        </span><span class="t">About Us</span></a></li>
</ul>
